package com.sumover.POJO;

import java.util.Date;

public class Level implements Comparable<Level> {
    private Integer lid;
    private Integer levelCount;
    private String levelContent;
    private User publisher;
    private Date publishTime;
    private Integer replyTo;

    public Integer getLevelCount() {
        return levelCount;
    }

    public void setLevelCount(Integer levelCount) {
        this.levelCount = levelCount;
    }

    public String getLevelContent() {
        return levelContent;
    }

    public void setLevelContent(String levelContent) {
        this.levelContent = levelContent;
    }

    public Integer getLid() {
        return lid;
    }

    public void setLid(Integer lid) {
        this.lid = lid;
    }

    public User getPublisher() {
        return publisher;
    }

    public void setPublisher(User publisher) {
        this.publisher = publisher;
    }

    public Date getPublishTime() {
        return publishTime;
    }

    public void setPublishTime(Date publishTime) {
        this.publishTime = publishTime;
    }

    public Integer getReplyTo() {
        return replyTo;
    }

    public void setReplyTo(Integer replyTo) {
        this.replyTo = replyTo;
    }

    @Override
    public String toString() {
        return "Level{" +
                "levelCount=" + levelCount +
                ", levelContent='" + levelContent + '\'' +
                ", publisher=" + publisher +
                ", publishTime=" + publishTime +
                ", replyTo=" + replyTo +
                '}';
    }


    @Override
    public int compareTo(Level o) {
        return this.levelCount.compareTo(o.levelCount);
    }
}
